package com.jtpay.ysfproductionprocess.http.dataStructure;

/**
 * Created by Administrator on 2018/1/16.
 */

public class BasicResponse<T> {
    private int flag;
    private String msg;
    private T data;
    private boolean Flag;

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isFlag() {
        return Flag;
    }

    public void setFlag(boolean flag) {
        Flag = flag;
    }

    @Override
    public String toString() {
        return String.format("flag = %s msg = %s data = %s",
                flag, msg, data == null ? "null" : data.toString());
    }
}
